Skip to content

Fixed select file buttons#746

Merged
1Blademaster merged 2 commits into
mainfrom
745-fla-select-file-button-doesnt-load-path
Oct 4, 2025
Merged

Fixed select file buttons#746
1Blademaster merged 2 commits into
mainfrom
745-fla-select-file-button-doesnt-load-path

Conversation

@1Blademaster
Copy link
Copy Markdown
Member

No description provided.

@1Blademaster 1Blademaster linked an issue Oct 4, 2025 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR replaces the FileButton components with a native file dialog implementation using IPC communication between the renderer and main Electron processes. This change provides better control over file selection and removes dependencies on the Mantine FileButton component.

  • Replaced FileButton components with Button components that trigger native file dialogs
  • Added IPC handler for file selection in the main Electron process
  • Simplified file import logic by removing state management for file tracking

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
gcs/src/missions.jsx Replaced FileButton with direct file dialog call and simplified import logic
gcs/src/components/fla/SelectFlightLog.jsx Replaced FileButton with native file selection implementation
gcs/electron/preload.js Added IPC channel permission for file selection
gcs/electron/main.ts Added IPC handler for native file dialog functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread gcs/electron/main.ts
Comment thread gcs/electron/main.ts Outdated
Copy link
Copy Markdown
Contributor

@NexInfinite NexInfinite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good except from the one comment, doesn't need to be in so I'll approve for now.

Comment thread gcs/electron/main.ts
@1Blademaster 1Blademaster merged commit c4b45e3 into main Oct 4, 2025
6 checks passed
@1Blademaster 1Blademaster deleted the 745-fla-select-file-button-doesnt-load-path branch October 4, 2025 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FLA select file button doesn't load path

3 participants